from mainapp import app
from flask_script import Manager
from mainapp.views import bank,user,card
from flask_cors import CORS



if __name__ == '__main__':
    CORS().init_app(app)
    app.register_blueprint(bank.blue,url_prefix='/bank')
    app.register_blueprint(user.blue,url_prefix='/user')
    app.register_blueprint(card.blue,url_prefix='/card')
    manager = Manager(app)
    manager.run()

